<template>
  <div class="outer">
    <h1>分类列表</h1>
    <div class="list">
      <Item title="美食">
        <template #default>
          <img src="./assets/03.png" style="width: 100%" alt="" />
        </template>
        <template #footer>
          <a href="###">点击查看更多美女>>></a>
        </template>
      </Item>
      <Item title="音乐">
        <template #default>
          <div>
            <p>七里香</p>
            <p>爱我别走</p>
            <p>听妈妈的话</p>
          </div>
        </template>
        <template #footer>
          <button>点击播放</button>
        </template>
      </Item>
      <Item title="游戏">
        <template #default>
          <video src="./assets/huahua.mp4" width="100%" autoplay muted></video>
        </template>
        <template #footer>
          <p style="color:blue">喜欢就点个赞</p>
        </template>
      </Item>
    </div>
  </div>
</template>

<script>
import Item from "./components/Item.vue";
export default {
  name: "App",
  components: { Item },
};
</script>

<style scoped>
.outer {
  width: 1000px;
  margin: 0 auto;
}
.outer h1 {
  margin-left: 40px;
}
.list {
  display: flex;
  justify-content: space-around;
}
</style>